package modelimplementation

import "time"

/*
 * 销售凭条
 */

type SalesReceipt struct {
	salesDate		time.Time
	amount			float64
}

func NewSalesReceipt(saleDate time.Time, amount float64) *SalesReceipt {
	return &SalesReceipt{salesDate: saleDate, amount: amount}
}

func (sr *SalesReceipt) GetAmount() float64 {
	return sr.amount
}

func (sr *SalesReceipt) GetSaleDate() time.Time {
	return sr.salesDate
}

